<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="pt-br" xml:lang="pt-br"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:head>
        <title>Login</title>
        <h:outputStylesheet library="css" name="style.css"/>
    </h:head>
    <h:body>
        <div class="Boxlogin">
            <h:form>
                <table>
                    <th colspan="2">#{msgs.tit_login}</th>
                    <tr>
                        <td colspan="2">                
                            <h:commandLink action="#{idioma.ptBR}">
                                <h:graphicImage id="br" library="images" name="br.png" alt="BR"/>
                            </h:commandLink>
                            <br/>
                            <h:commandLink action="#{idioma.en}">
                                <h:graphicImage id="en" library="images" name="us.png" alt="EN"/>
                            </h:commandLink></td>
                    </tr>
                    <tr>
                        <td>
                            Login:
                        </td>
                        <td>
                            <h:inputText value="#{usuario.nome}"/> 
                        </td>
                    </tr>

                    <tr>
                        <td>
                            #{msgs.senha}
                        </td>
                        <td>
                            <h:inputSecret value="#{usuario.senha}"/>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <h:commandButton id="login" value="Login" action="#{usuario.valida}"/>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <h:message for="login" style="color:red" /> 
                        </td>
                    </tr>



                </table>

            </h:form>
        </div>
    </h:body>
</html>